package com.gwtt.simulator.netconf.model.rpc.reply;

import com.gwtt.simulator.netconf.model.XStreamModel;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@XStreamAlias("rpc-reply")
public class RpcReply extends XStreamModel {

    @XStreamAsAttribute
    @XStreamAlias("message-id")
    private String messageId;

    @XStreamAlias("rpc-error")
    private RpcError rpcError;

    private RpcData data;

    private RpcReplyOk ok;

    public RpcReply() {
        super("urn:ietf:params:xml:ns:netconf:base:1.0");
    }

}
